package com.code.day06;

public class Dome02 {
    //    属性
    MyDate birthday;
    String cardId;
    String name;
    int age;
    String brand = "华为";
    double price = 9999;

    //    行为  无参
    public void eat() {
        System.out.println("动物会跑");
    }

    public void drink() {
        System.out.println("动物会喝水");
    }

    //    行为 有参
    public void call(String name) {
        System.out.println("给" + name + "发短信");
    }

    public String message() {
        return "岁碎碎念";
    }

}
